package Skal::Controller::Index;

use Mojo::Base 'Mojolicious::Controller';

sub index {
    my $self = shift;
    # Controller object

    return $self->render(
        template => 'index/index',
        title    => 'Skal'
    );
}

sub result {
    my $self = shift;
    # Controller object

    return $self->render(
        template => 'index/result',
        title    => 'Skal'
    );
}

sub archive {
    my $self = shift;
    # Controller object

    return $self->render(
        template => 'index/archive',
        title    => 'Skal Archive'
    );
}

sub help {
    my $self = shift;
    # Controller object

    return $self->render(
        template => 'index/help',
        title    => 'Skal Help'
    );
}

sub configuration {
    my $self = shift;
    # Controller object

    return $self->render(
        template => 'index/configuration',
        title    => 'Skal Configuration'
    );
}
=comment
Configuration titles:
  * /conf                            --> Skal Configuration
  * /conf                            --> Skal - Konfigurace a nastavení
  * /conf?section=data&action=view   --> Skal Configuration - View Data
  * /conf?section=data&action=view   --> Skal - Konfigurace a nastavení - Přehled dat
  * /conf?section=data&action=manage --> Skal Configuration - Manage Data
  * /conf?section=data&action=manage --> Skal - Konfigurace a nastavení - Správa dat
  * /conf?section=user               --> Skal Configuration - User
  * /conf?section=user               --> Skal - Konfigurace a nastavení - Uživatel
=cut

sub ahoj_1 {
    my $self = shift;
    # Controller object

    return $self->render(
        template => 'index/ahoj1',
        title    => 'Skal Ahoj 1'
    );
}
# Action will be removed

sub ahoj_2 {
    my $self = shift;
    # Controller object

    return $self->render(
        template => 'index/ahoj2',
        title    => 'Skal Ahoj 2'
    );
}
# Action will be removed

1;

